$(function(){

//header
(function(){
var $shop = $('.h_m_r_shop');
var $hide = $('.h_m_r_s_hide');
$shop.hover(function(){
$(this).addClass('hover');
$hide.stop().slideDown();
},function(){
$(this).removeClass('hover');
$hide.stop().slideUp();
});
})();



//nav 
(function(){

    var $n_right = $('.n_right');
    var $input = $('.n_r_input input');
    var $search = $('.n_r_search');
    var $tips = $('.n_r_tips');
    var $n_r_hide = $('.n_r_hide');

    $n_right.hover(function(){
        $(this).addClass('hover');
    },(function(){
        $(this).removeClass('hover');
    }));

    $input.focus(function(){
        $n_right.addClass('focus');
        $tips.fadeOut(200);
        $n_r_hide.show();
    }).blur(function(){
        $n_r_hide.hide();
        $n_right.removeClass('focus');
        $tips.fadeIn(200);
    })
    


})();

});



